import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';
import {RouterModule, Routes} from '@angular/router';
import {AppRoutes} from './app.routing';
import {MusicComponent} from './music/music.component';
import {NavComponent} from './nav/nav.component';
import {MusicService} from './server/music.service';
import {HttpModule} from '@angular/http';
import {CookieService} from 'ngx-cookie-service';

@NgModule({
  declarations: [
    AppComponent,
    MusicComponent,
    NavComponent,
  ],
  imports: [
    BrowserModule,
    HttpModule,
    RouterModule.forRoot(<Routes>AppRoutes),
  ],
  providers: [MusicService, CookieService],
  bootstrap: [AppComponent]
})
export class AppModule { }
